package com.nuoniu.sibanyun.service.work.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.nuoniu.sibanyun.entity.work.WorkPlanContent;
import com.nuoniu.sibanyun.entity.work.WorkPlanSummary;
import com.nuoniu.sibanyun.mapper.work.WorkPlanContentMapper;
import com.nuoniu.sibanyun.service.work.IWorkPlanContentService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 计划内容 服务实现类
 * </p>
 *
 * @author baiqiang
 * @since 2020-08-29
 */
@Service
public class WorkPlanContentServiceImpl extends ServiceImpl<WorkPlanContentMapper, WorkPlanContent> implements IWorkPlanContentService {

    @Override
    public List<WorkPlanContent> getPlanContentList(Long planId) {
        return baseMapper.getPlanContentList(planId);
    }

    @Override
    public void deleteByPlanId(Long planId) {
        baseMapper.deleteByPlanId(planId);
    }

    @Override
    public void updateStatus(WorkPlanContent content) {
        baseMapper.updateStatus(content);
    }
}
